package com.jn.bridge;

/**
 * @author 江南大学1033190417
 * @date 2022/4/12 14:02
 */
public abstract class Phone {
    //聚合品牌
    private Brand brand;

    public Phone(Brand brand) {
        this.brand = brand;
    }


    protected void open() {
        this.brand.open();
    }

    protected void close() {
        this.brand.close();
    }

    protected void call() {
        this.brand.call();
    }
}
